package com.register.controller;

import com.register.pojo.Doctor;
import com.register.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;


@RestController("doctorController")
public class DoctorController {
    @Autowired
    private DoctorService doctorService;

    @PostMapping("/pp")
    public Object getDoctor(@RequestBody Doctor doctor){
        return doctorService.getDoctor(doctor);
    }
}
